Dela via


Manage orders - Gets a product promotion by id.

Hämtar information om befordran efter ID.

GET https://api.partnercenter.microsoft.com/v{version}/productpromotions/{id}
GET https://api.partnercenter.microsoft.com/v{version}/productpromotions/{id}?country={country}

URI-parametrar

Name I Obligatorisk Typ Description
id
path True

string

Kampanj-ID:t.

version
path True

string

country
query

string

Landskoden.

Begärandehuvud

Name Obligatorisk Typ Description
Authorization True

string

Token för auktoriseringsbärare

ms-correlationid

string

Används för att spåra begäranden internt. Om ett ms-correlationid inte anges genererar servern en ny för varje begäran

MS-CV

string

Används för att spåra begäranden internt. Om en MS-CV inte tillhandahålls genererar servern en ny för varje begäran

ms-requestid

string

Används för idempotens för begäranden. Om ett ms-requestid inte har angetts genererar servern en ny för varje begäran

Svar

Name Typ Description
200 OK

Contracts.V1.Models.ProductPromotion

Begäran lyckades. Svarstexten innehåller information om befordran.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

400 Bad Request

Det saknades eller ogiltiga indata. Svarstexten innehåller felinformationen.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

401 Unauthorized

Begäran autentiserades inte. Klienten måste autentisera med partner-API-tjänsten först.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

403 Forbidden

Begäran autentiserades men nekades eftersom anroparen inte har behörighet att anropa den.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

404 Not Found

Resursen hittades inte eller är inte tillgänglig med de angivna indataparametrarna.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

500 Internal Server Error

Partner-API-tjänsten eller något av dess beroenden kunde inte uppfylla begäran.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

Definitioner

Name Description
Contracts.V1.Models.ProductPromotion
Contracts.V1.Models.ProductPromotionPricingPolicy
Contracts.V1.Models.ProductPromotionProperties
Contracts.V1.Models.ProductPromotionRequiredProduct
Contracts.V1.Models.ProductPromotionTerm

Contracts.V1.Models.ProductPromotion

Name Typ Description
description

string

endDate

string

id

string

name

string

properties

Contracts.V1.Models.ProductPromotionProperties

requiredProducts

Contracts.V1.Models.ProductPromotionRequiredProduct[]

startDate

string

Contracts.V1.Models.ProductPromotionPricingPolicy

Name Typ Description
policyType

string

value

string

Contracts.V1.Models.ProductPromotionProperties

Name Typ Description
isAutoApplicable

boolean

Contracts.V1.Models.ProductPromotionRequiredProduct

Name Typ Description
pricingPolicies

Contracts.V1.Models.ProductPromotionPricingPolicy[]

productId

string

skuId

string

term

Contracts.V1.Models.ProductPromotionTerm

Contracts.V1.Models.ProductPromotionTerm

Name Typ Description
billingCycle

string

duration

string